
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGCamera.h>
#include <OpenSG/OSGCameraBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Camera_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_Camera()
{
    scope* osg_CameraBase_scope = new scope(
    class_< osg::CameraBase, bases< osg::AttachmentContainer > , boost::noncopyable >("CameraBase", no_init)
//        .def_readonly("BeaconFieldMask", &osg::CameraBase::BeaconFieldMask)
//        .def_readonly("NearFieldMask", &osg::CameraBase::NearFieldMask)
//        .def_readonly("FarFieldMask", &osg::CameraBase::FarFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::CameraBase::MTInfluenceMask)
        .def("getClassType", &osg::CameraBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::CameraBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::CameraBase::*)() )&osg::CameraBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::CameraBase::*)() const)&osg::CameraBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::CameraBase::getContainerSize)
        //.def("getBeacon", (osg::NodePtr& (osg::CameraBase::*)() )&osg::CameraBase::getBeacon, return_value_policy< copy_const_reference >())
        .def("getBeacon", (const osg::NodePtr& (osg::CameraBase::*)() const)&osg::CameraBase::getBeacon, return_value_policy< copy_const_reference >())
        //.def("getNear", (osg::Real32& (osg::CameraBase::*)() )&osg::CameraBase::getNear, return_value_policy< copy_const_reference >())
        .def("getNear", (const osg::Real32& (osg::CameraBase::*)() const)&osg::CameraBase::getNear, return_value_policy< copy_const_reference >())
        //.def("getFar", (osg::Real32& (osg::CameraBase::*)() )&osg::CameraBase::getFar, return_value_policy< copy_const_reference >())
        .def("getFar", (const osg::Real32& (osg::CameraBase::*)() const)&osg::CameraBase::getFar, return_value_policy< copy_const_reference >())
        .def("setBeacon", &osg::CameraBase::setBeacon)
        .def("setNear", &osg::CameraBase::setNear)
        .def("setFar", &osg::CameraBase::setFar)
        .def("getBinSize", &osg::CameraBase::getBinSize)
        .def("copyToBin", &osg::CameraBase::copyToBin)
        .def("copyFromBin", &osg::CameraBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("FarFieldId") = (int)osg::CameraBase::FarFieldId;
    scope().attr("NextFieldId") = (int)osg::CameraBase::NextFieldId;
    scope().attr("BeaconFieldId") = (int)osg::CameraBase::BeaconFieldId;
    scope().attr("NearFieldId") = (int)osg::CameraBase::NearFieldId;

    delete osg_CameraBase_scope;

    class_< osg::Camera, bases< osg::CameraBase > , boost::noncopyable, osg::CameraRefPtr >("Camera", no_init)
        .def("getClassname", &osg::Camera::getClassname)
        .def("changed", &osg::Camera::changed)
        //.def("setup", &osg::Camera::setup)
        //.def("setupProjection", &osg::Camera::setupProjection)
        //.def("draw", &osg::Camera::draw)
        .def("getProjection", &osg::Camera::getProjection)
        /*
	.def("getProjectionTranslation", &osg::Camera::getProjectionTranslation)
        .def("getViewing", &osg::Camera::getViewing)
        .def("getFrustum", &osg::Camera::getFrustum)
        .def("getWorldToScreen", &osg::Camera::getWorldToScreen)
	*/
        //.def("calcViewRay", &osg::Camera::calcViewRay)
        .def("dump", &osg::Camera::dump, osg_Camera_dump_overloads_0_2())
	.staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::CameraPtr>();
    implicitly_convertible<osg::CameraRefPtr, osg::CameraPtr>();
    implicitly_convertible<osg::CameraPtr, osg::AttachmentContainerPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::CameraPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::CameraPtr>);
}

